package com.isoftstone.service.impl;

import java.util.List;

import com.isoftstone.pojo.Job;
import com.isoftstone.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isoftstone.dao.JobDAO;

@Service
public class JobServiceImpl implements JobService {

	@Autowired
	private JobDAO jobDAO;
	@Override
	public int register(Job job) {
		return jobDAO.insert(job);
	}


	@Override
	public int update(int id) {
		// TODO Auto-generated method stub
		return jobDAO.update(id);
	}
	@Override
	public Job select(int id) {
		return jobDAO.select(id);
	}

	@Override
	public List<Job> selectother(boolean b) {
		// TODO Auto-generated method stub
		return jobDAO.selectother(b);
	}
	@Override
	public int delete(int id) {
		return jobDAO.delete(id);
	}
}
